package ch02;
public class TestMain_235 {
    // 布尔运算
    public static void main (String[] args){
        // 短路运算
        boolean b = 5 < 3;
        System.out.println(b);
        boolean result = b && (5 / 3 > 0);
        System.out.println(result);

        // 三元运算
        int n = -100;
        int x = n >= 0 ? n : -n;
        System.out.println(x);

    }
}
